/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcshop.entity;

import com.easy.common.utils.excel.annotation.ExcelField;
import com.easy.core.persistence.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 问大家图片Entity
 * @author waylen chi
 * @version 2018-01-12
 */
public class QuestionImg extends BaseEntity<QuestionImg> {
	
	private static final long serialVersionUID = 1L;
	private Integer imgId;		// 图片ID，自增
	private Integer questionId;		// 问题ID
	private Integer imageId;		// 图片地址id
	private String imageUrl;		// 图片地址Url
	private String imageDesc;		// 图片描述
	private Integer sortNo;		// 排序
	
	public QuestionImg() {
		super();
	}

	@NotNull(message="图片ID，自增不能为空")
	@ExcelField(title="图片ID，自增", align=2, sort=0)
	public Integer getImgId() {
		return imgId;
	}

	public void setImgId(Integer imgId) {
		this.imgId = imgId;
	}
	
	@ExcelField(title="问题ID", align=2, sort=1)
	public Integer getQuestionId() {
		return questionId;
	}

	public void setQuestionId(Integer questionId) {
		this.questionId = questionId;
	}
	
	@ExcelField(title="图片地址id", align=2, sort=2)
	public Integer getImageId() {
		return imageId;
	}

	public void setImageId(Integer imageId) {
		this.imageId = imageId;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	@ExcelField(title="图片描述", align=2, sort=3)
	public String getImageDesc() {
		return imageDesc;
	}

	public void setImageDesc(String imageDesc) {
		this.imageDesc = imageDesc;
	}
	
	@ExcelField(title="排序", align=2, sort=4)
	public Integer getSortNo() {
		return sortNo;
	}

	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}
	
}